package com.tuanzi.loan.business.repository.xhh.settlementsystem;

import com.tuanzi.loan.business.entity.xhh.settlementsystem.XhhSettlementIncomeActivity;
import com.tuanzi.loan.business.repository.xhh.settlementsystem.custom.XhhSettlementIncomeActivityRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-08-20 20:22
 */
public interface XhhSettlementIncomeActivityRepository
        extends XhhSettlementIncomeActivityRepositoryCustom,JpaRepository<XhhSettlementIncomeActivity,Long> {

    XhhSettlementIncomeActivity findSettlementIncomeActivityByActivityIdAndIncomeId(Long activityId, Long incomeId);

    List<XhhSettlementIncomeActivity> findAllByIncomeId(Long incomeId);
}
